<?php 
	
    $conn = oci_connect("hospital", "hospital", "//localhost/XE"); 
	$ss = "UPDATE SCHEDULE SET PATIENT_ID = '$_POST[pat]', SURGEON_ID = '$_POST[sur]', BED = '$_POST[bed]', REST_TIME = '$_POST[time]' 
                 WHERE PATIENT_ID = '$_GET[col]' ";
		
	$update= oci_parse($conn,$ss);
	oci_execute($update);
 ?>
 
<html>
<head><meta http-equiv="refresh" content="1; URL=main.php"></head>
<BODY bgcolor = "#ffffff">
 <font color="#ffffff" size="20">Redirecting ...</font>
 </body>
 </html>